@import "./../shared/color";
@import "./../shared/common";
@import "./../shared/constants";
@import "./../vtrade/vtrade-common";
@import "./../tab-list/tab-list.component.less";
@main-color: #FF4748;
.app-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  // min-width: @screen-md-min;
  .left-wrapper {
    .display-flex(@justify-content: flex-start, @align-items: auto);
    width: @width-navbar;
    height: 100%;
    background-color: #2c2b2d;
    .app-logo {
      color: #000;
      text-align: center;
      height: 68px;
      padding-top: 7px;
      padding-bottom: 18px;
      img {
        width: 40px;
        border-radius: 8px;
        vertical-align: middle;
      }
    }
    ul.left-menu-nav {
      text-align: left;
      margin: 0px;
      .flex();
      .tab-list-item {
        height: 66px;
        cursor: pointer;
        text-align: center;
        a {
          display: inline-block;
          width: 100%;
          height: 100%;
          text-decoration: none;
        }
        .nav-icon {
          display: inline-block;
          font-size: 3.6rem;
          color: #767676;
          &.active {
            // background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FF0000), to(#FFF000));
            background: -webkit-linear-gradient(right top, #FF0000, #FFF000);
            background: -moz-linear-gradient(right top, #FF0000, #FFF000);
            background: -ms-linear-gradient(right top, #FF0000, #FFF000);
            background: -o-linear-gradient(right top, #FF0000, #FFF000);
            background: linear-gradient(right top, #FF0000, #FFF000);
            color: transparent; 
            -webkit-text-fill-color: transparent;
            -moz-text-fill-color: transparent;
            -ms-text-fill-color: transparent;
            -o-text-fill-color: transparent;
            -webkit-background-clip: text;
            -moz-background-clip: text;
            -ms-background-clip: text;
            -o-background-clip: text;
            background-clip: text;
          }
          &.activeIE {
            color: #F40;
          }
        }
        img {
          width: 31px;
          height: 28px;
        }
        span {
          font-family: 微软雅黑;
          display: block;
          line-height: 12px;
          color: #8c8c8c;
          margin-top: 5px;
          &.active {
            color: #fa3d41;
          }
        }
        &:last-child {
          margin-bottom: 0px;
        }
      }
    }
    .about {
      width: @width-navbar;
      text-align: center;
      margin-bottom: 14px;
      cursor: pointer;
      img {
        width: 28px;
      }
    }
  }
  .right-wrapper {
    position: absolute;
    top: 0;
    left: @width-navbar;
    right: 0;
    bottom: 0;
    .main-content {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 30px;
      background-color: #F2F2F2;
    }
    .footer {
      width: 100%;
      height: 30px;
      position: absolute;
      bottom: 0;
      left: 0;
      border-top: @border-simple-dark;
      background-color: #EEE;
      font-size: 1.4rem;
      .index-table-main {
        line-height: 30px;
        .index-table-row {
          display: inline-block;
          position: relative;
          min-width: 290px;
          padding: 0 20px;
          .index-table-cell {
            padding: 0 2px;
            background: none;
            cursor: pointer;
            &.text-go-up {
              color: @color-red-light;
            }
            &.text-go-down {
              color: @color-green-normal;
            }
            &.text-percent {
              &::after {
                content: "%"
              }
            }
          }
        }
      }
      .time {
        position: absolute;
        top: 0;
        right: 0;
        line-height: 30px;
        padding: 0 20px;
        color: #666;
        span:first-child {
          margin-right: 10px;
        }
      }
    }
  }
}

body {
  margin: 0;
}

.app-loader {
  position: fixed;
  text-align: center;
  width: 100%;
  height: 100%;
  background-color: #2f333b;
  background-image: url("/static/images/line.png");
  .app-logo {
    position: fixed;
    left: calc(~"50% - 164px");
    top: calc(~"50% - 65px");
    .logo {
      width: 80px;
      height: 104px;
    }
    .title{
      font-size: 26px;
      color: #fffefe;
      margin-top: 4px;
      margin-bottom: 6px;
    }
    .subtitle{
      margin-top: 8px;
      font-size: 14px;
      color: #fffefe;
    }
  }
}


.read-article-page {
  width: 800px;
  margin: 10px auto;
  overflow: auto;
  header {
    font-size: 2.2rem;
    font-weight: bold;
    font-family: Helvetica;
    color: #DB4647;
  }
  hr {
    margin-bottom: 20px;
  }
  p {
    margin: 1em 0;
  }
  .article {
    box-sizing: border-box;
    .title {
      font-size: 2.2rem;
      margin: 0;
      line-height: 30px;
    }
    .article-meta {
      color: #868686;
      font-size: 1.6rem;
      line-height: 22px;
    }
    .article-content {
      line-height: 30px;
      font-size: 1.7rem;
      text-align: justify;
      text-indent: 2em;
      margin-bottom: 1em;
      margin-top: 1em;
    }
    .article-footer {
      font-size: 1.4rem;
      margin-top: 2em;
      margin-bottom: 1em;
    }
  }
}

// 响应式设计，媒体查询
// @media screen and (min-width: 768px) and (max-width: 1024px) {
//   .app-wrapper {
//     min-width: 768px;
//     .left-wrapper {
//       width: 80px;
//       .app-logo {
//         padding: 10px;
//         img {
//           width: 54px;
//         }
//       }
//       ul.left-menu-nav {
//         li {
//           padding: 15px 20px;
//         }
//       }
//     } 
//     .right-wrapper {
//       left: 80px;
//     }
//   }
// }
// @media screen and (min-width: 1025px) and (max-width: 1080px) {
//   .app-wrapper {
//     min-width: 768px;
//   }
// }